<%@ page isErrorPage="true" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<jsp:include page="header.jsp" />
<div class="errorMsg">
	<h1>An error occured </h1>
	<br/><br/>
	<strong>javax.servlet.error.request_uri: </strong>

	<%=request.getAttribute("javax.servlet.error.request_uri")%>

	<br> <strong>javax.servlet.error.exception: </strong>

	<%=request.getAttribute("javax.servlet.error.exception")%>

	<br> <strong>javax.servlet.error.status_code: </strong>

	<%=request.getAttribute("javax.servlet.error.status_code")%>

	<br> <strong>javax.servlet.error.servlet_name: </strong>

	<%=request.getAttribute("javax.servlet.error.servlet_name")%>

	<br>
	<%
		Throwable lException = exception;
		while (lException.getCause() != null) {
			if(lException.getMessage()!= null){
				out.print(lException.getMessage() + "<br/>");
			}
			lException = lException.getCause();
		}
	%>
	</div>

<jsp:include page="footer.jsp" />